<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort();
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>

<s:property value="userDetial.username"/>

</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/tools/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/tags.js"></script>
		<script type="text/javascript" src="js/times.js"></script>
		<script type="text/javascript" src="js/toupiao.js"></script>
		<script type="text/javascript">
		 var keylis = new Array(${userDetial.tags});
		 function addFriend(userId)
		 {
		 if(ProductVote("sigleUser"+userId))
	      {
		    $.post("groupbyajax/user!addFriend.action",{userId:userId,flag:1},function(data){
		       
		         if(data.success==true)
		         {
		            alert("关注成功！");
		         }else if(data.success=="error")
		         {
		           delCookie("sigleUser"+userId);
		           alert("不能关注自己！");
		         }else if(data.success==false)
		         {
		           delCookie("sigleUser"+userId);
		           alert("已经关过！");
		         }else
		         {
		            delCookie("sigleUser"+userId);
		            alert("请登录！");
		         }
		    });
		    }
		 }
		function addReplay(id,count)
		 {
		     var content=$.trim($("#content"+id).val());
		     var login='<s:property value="#session.user.email"/>';
		     if(login!="")
		     {
			     if(content.length<0||content.length>100)
			     {
			        alert("内容字数在1~300！");
			        return false;
			     }
			    
			     $.post("groupbyajax/user!addReplay.action",{dynamicId:id,content:content},function(data){
			      var html='<div style="border-bottom: 1px dashed #565656;">'+
		                   '&nbsp;&nbsp;&nbsp;&nbsp;'+data.success.content+
		                   '</div>';
			         $("#contentShow"+id).append(html);
			         $("#content"+id).val("");
			           $("#"+count).text(parseInt($("#"+count).text())+1);
			    });
		    }else
		    {
		       alert("请登录！");
		    }
		 }
		 function contentShow(obj,id)
		 {
		 
		    
		     if($("#contentShow"+id).css("display")!="none")
		     {
		        $(obj).html("回应");
		        $("#contentShow"+id).hide();
		        $("#contentBut"+id).hide();
		     }else
		     {
		       $(obj).html("隐藏回应");
		        $("#contentShow"+id).show();
		        $("#contentBut"+id).show();
		        
		     }
		 }
		</script>
</head>

<body>
<div class="container">


<jsp:include page="../head.jsp"/> 
</div>

<div class="ge">
</div>
	 
<div class="content">
  <div class="wrap">
         <div class="left">
	           
			   <div class="guess">
			        <div class="guess_top"><a  >猜你喜欢</a>
					</div>
					<div class="guess_con">
					    <input type="hidden" id="url" value="groupby!getCityGroupbyList.action?cityId=${cityId }&currentPage=1&keyword="/><!-- 供tags使用 -->
					     <input type="hidden" id="likeLength" value="<s:property value="myLikeGroupby.size()"/>"/>
					     <s:iterator value="myLikeGroupby" id="id" status="status">
					       <s:if test="#status.index==0">
					            <div class="boxg">
							        <div class="picg"><a href="<s:property value="dealUrl"/>" target="_blank"><img src="<s:property value="image"/>" /></a></div>
									<div class="infog">特价:<span class="zixun"><s:property value="price"/>元</span><br/>
									<ul><li id="tags<s:property value="#status.index"/>"></li></ul>
									<s:if test="%{title.length()>23}"> 
									    <div class="tt" id='t<s:property value="#status.index"/>' title='<s:property value="title" />'>&nbsp;&nbsp;&nbsp;&nbsp;<s:property value="title.substring(0,23)+'...'" /></div>
									</s:if> 
									<s:else>
										<div class="tt" id='t<s:property value="#status.index"/>' title='<s:property value="title" />'>&nbsp;&nbsp;&nbsp;&nbsp;<s:property value="title" /></div>
									</s:else>
									</div>
						       </div>
					       </s:if>
					       <s:else>
					           <div class="boxg1">
						         <div class="picg"><a href="<s:property value="dealUrl"/>" target="_blank"><img src="images/boxg_tu1.jpg" /></a>
								</div>
								<div class="infog">
								   特价:<a  target="_parent" class="zixun">30元</a><br/>
								<ul><li id="tags<s:property value="#status.index"/>"></li></ul>
								    <s:if test="%{title.length()>23}"> 
									    <div class="tt" id='t<s:property value="#status.index"/>' title='<s:property value="title" />'>&nbsp;&nbsp;&nbsp;&nbsp;<s:property value="title.substring(0,23)+'...'" /></div>
									</s:if> 
									<s:else>
										<div class="tt" id='t<s:property value="#status.index"/>' title='<s:property value="title" />'>&nbsp;&nbsp;&nbsp;&nbsp;<s:property value="title" /></div>
									</s:else>
								</div>
						     </div>
					       </s:else>
					       
					     </s:iterator>
						 <div class="clear"></div> 
					</div>
			   </div>
              
 <div class="dongtai">
			         <div class="dongtai_top"><a >好友动态</a>
					 <span class="ziti_span">......................<a href="user/user!dynamicList.action?currentPage=1&userId=<s:property value='userId'/>" target="_parent" id="ziti_a">更多</a></span></div>
					 <div class="dongtai_con">
					      <ul>
					     
					      <s:iterator value="dynamicList" id="id" status="status">
					      <s:if test="#id[0][9]==2">
			                      <s:set name="url1">user/user!singleUserPage.action?currentPage=1&userId=<s:property value="#id[0][0]"/></s:set>
							   </s:if>
							   <s:elseif test="#id[0][9]==3">
							      <s:set name="url1">user/user!groupbyUserPage.action?currentPage=1&userId=<s:property value="#id[0][0]"/></s:set>
							   </s:elseif>
							   <s:elseif test="#id[0][9]==4">
							      <s:set name="url1">user/user!brandUserPage.action?currentPage=1&userId=<s:property value="#id[0][0]"/></s:set>
							   </s:elseif>
					           <s:if test="#id[0][10]==2">
			                      <s:set name="url2">user/user!singleUserPage.action?currentPage=1&userId=<s:property value="#id[0][3]"/></s:set>
							   </s:if>
							   <s:elseif test="#id[0][10]==3">
							      <s:set name="url2">user/user!groupbyUserPage.action?currentPage=1&userId=<s:property value="#id[0][3]"/></s:set>
							   </s:elseif>
							   <s:elseif test="#id[0][10]==4">
							      <s:set name="url2">user/user!brandUserPage.action?currentPage=1&userId=<s:property value="#id[0][3]"/></s:set>
							   </s:elseif>
							   <s:elseif test="#id[0][10].equals('-1')">
							      <s:set name="url2"><s:property value="#id[0][5].split(',')[1]"/></s:set>
							   </s:elseif>
					       <s:if test="#id[0][7]==1">
					        
					           <li>
							    <div class="boxd1"><img src="<s:property value="#id[0][1]"/>" /></div>
							    <div class="boxd2">
							    <div class="dt1">
							    <a href="${url1}" target="_parent" class="red"><s:property value="#id[0][2]"/>
							     </a>
							     关注了<a href="${url2}" target="_parent" class="red"><s:property value="#id[0][5]"/></a></div>
							    <div class="dt2"></div></div>
							    <div class="boxd3"><a href="${url2 }" target="_parent" class="red"><img src="<s:property value="#id[0][4]"/>" width=60 height=60/></a></div>
							    <div class="clear"></div>
						     </li>
					        </s:if>
					        <s:elseif test="#id[0][7]==2">
					         
					           <li>
							    <div class="boxd1"><img src="<s:property value="#id[0][1]"/>"  /></div>
							    <div class="boxd2">
							    <div class="dt1"><a href="${url1 }" target="_parent" class="red"><s:property value="#id[0][2]"/>
							     </a>关注了<a href="${url2 }" target="_parent" class="red"><s:property value="#id[0][5]"/></a></div>
							    <div class="dt2"></div></div>
							    <div class="boxd3"><a href="${url2 }" target="_parent" class="red"><img src="<s:property value="#id[0][4]"/>" width=60 height=60/></a></div>
							    <div class="clear"></div>
						     </li>
					        </s:elseif>
					         <s:elseif test="#id[0][7]==3">
					          <li>
							  <div class="boxd1"><img src="<s:property value="#id[0][1]"/>" /></div>
							  <div class="boxd2">
	                              <div class="dt1"><a href="${url1 }" target="_parent" class="red"><s:property value="#id[0][2]"/></a>评价了<a href="${url2 }" target="_parent" class="red"><s:property value="#id[0][5]"/></a>品牌</div>
		                          <div class="pingjia"> 
		                                 &nbsp;&nbsp;
		                             <span class="tuan" ><s:property value="#id[0][6]"/>&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:void(0);" onclick="contentShow(this,'<s:property value="#id[0][8]"/>')" style="color:#9C2684;">回应</a>(<span id="count<s:property value="#id[0][8]"/>" style="color:#9C2684;"></span><s:property value="#id[1].size()"/></span>)</span>
		                             <div id="contentShow<s:property value="#id[0][8]"/>" style="display:none;color:#565656">
		                              <s:iterator value="#id[1]" >
		                              <div style="border-bottom:1px dashed #CCCCCC;">
		                                &nbsp;&nbsp;&nbsp;&nbsp;<s:property value="content"/>-
		                                <s:if test="userInfor.split(',')[2]==2">
		                                   <a href="user/user!singleUserPage.action?userId=<s:property value="userInfor.split(',')[1]"/>&currentPage=1"  style="color:#9C2684"><s:property value="userInfor.split(',')[0]"/></a>
		                                </s:if>
		                                <s:elseif test="userInfor.split(',')[2]==3">
		                                    <a href="user/user!groupbyUserPage.action?currentPage=1&userId=<s:property value="userInfor.split(',')[1]"/>"  style="color:#9C2684"><s:property value="userInfor.split(',')[0]"/></a>
		                                </s:elseif>
		                                <s:elseif test="userInfor.split(',')[2]==4">
		                                     <a href="user/user!brandUserPage.action?currentPage=1&userId=<s:property value="userInfor.split(',')[1]"/>"  style="color:#9C2684"><s:property value="userInfor.split(',')[0]"/></a>
		                                </s:elseif>
		                                
		                                </div>
		                              </s:iterator>
		                             </div>
		                          </div>
	                              <div class="dt2" id="contentBut<s:property value="#id[0][8]"/>" style="display:none;">
	                              <input type="text" id="content<s:property value="#id[0][8]"/>" size="30" />
	                              <a href="javascript:void(0)" onclick="addReplay(<s:property value="#id[0][8]"/>,'count<s:property value="#id[0][8]"/>')" target="_parent" >发表回应</a>&nbsp;&nbsp;
	                              <a href="${url2 }" target="_blank">去看看</a>&nbsp;&nbsp;</div>
	                              
	                          </div>
							  <div class="boxd3"><a href="${url2 }" target="_parent" class="red"><img src="<s:property value="#id[0][4]"/>" width=60 height=60 /></a></div>
							  <div class="clear"></div>
							 </li>
					        </s:elseif>
					        <s:elseif test="#id[0][7]==4">
					        
					           <li>
							    <div class="boxd1"><img src="<s:property value="#id[0][1]"/>" /></div>
							    <div class="boxd2">
							    <div class="dt1"><a href="${url1}" target="_parent" class="red"><s:property value="#id[0][2]"/>
							     </a>关注了<a href="${url2}" target="_blank" class="red"><s:property value="#id[0][5].split(',')[0]"/></a>的团购活动</div>
							    <div class="dt2"></div></div>
							    <div class="boxd3"><a href="${url2}" target="_blank" class="red"><img src="<s:property value="#id[0][4]"/>" width=165 height=109/></a></div>
							    <div class="clear"></div>
						     </li>
					        </s:elseif>
					        
					        <s:elseif test="#id[0][7]==5">
						     <li>
							  <div class="boxd1"><img src="<s:property value="#id[0][1]"/>" /></div>
							  <div class="boxd2">
	                              <div class="dt1"><a href="${url1 }" target="_parent" class="red"><s:property value="#id[0][2]"/></a>评价了<a href="${url2 }" target="_blank" class="red"><s:property value="#id[0][5].split(',')[0]"/></a>的团购活动</div>
		                          <div class="pingjia"> 
		                                 &nbsp;&nbsp;
		                             <span class="tuan"><s:property value="#id[0][6]"/>&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:void(0);" onclick="contentShow(this,'<s:property value="#id[0][8]"/>')" style="color:#9C2684;">回应</a>(<span id="count<s:property value="#id[0][8]"/>" style="color:#9C2684;"><s:property value="#id[1].size()"/></span>)</span>
		                             <div id="contentShow<s:property value="#id[0][8]"/>" style="display:none;color:#565656">
		                              <s:iterator value="#id[1]" >
		                              <div style="border-bottom:1px dashed #CCCCCC;">
		                                &nbsp;&nbsp;&nbsp;&nbsp;<s:property value="content"/>-
		                                <s:if test="userInfor.split(',')[2]==2">
		                                   <a href="user/user!singleUserPage.action?userId=<s:property value="userInfor.split(',')[1]"/>&currentPage=1" style="color:#9C2684"><s:property value="userInfor.split(',')[0]"/></a>
		                                </s:if>
		                                <s:elseif test="userInfor.split(',')[2]==3">
		                                    <a href="user/user!groupbyUserPage.action?currentPage=1&userId=<s:property value="userInfor.split(',')[1]"/>" style="color:#9C2684"><s:property value="userInfor.split(',')[0]"/></a>
		                                </s:elseif>
		                                <s:elseif test="userInfor.split(',')[2]==4">
		                                     <a href="user/user!brandUserPage.action?currentPage=1&userId=<s:property value="userInfor.split(',')[1]"/>" style="color:#9C2684"><s:property value="userInfor.split(',')[0]"/></a>
		                                </s:elseif>
		                                
		                                
		                                </div>
		                              </s:iterator>
		                             </div>
		                          </div>
	                              <div class="dt2" id="contentBut<s:property value="#id[0][8]"/>" style="display:none;">
	                              <input type="text" id="content<s:property value="#id[0][8]"/>" size="30" />
	                              <a href="javascript:void(0)" onclick="addReplay(<s:property value="#id[0][8]"/>,'count<s:property value="#id[0][8]"/>')" target="_parent">发表回应</a>&nbsp;&nbsp;
	                              <a href="<s:property value="#id[0][5].split(',')[1]"/>" target="_blank">去看看</a>&nbsp;&nbsp;</div>
	                              
	                          </div>
							  <div class="boxd3"><a href="${url2 }" target="_blank" class="red"><img src="<s:property value="#id[0][4]"/>" width=165 height=109 /></a></div>
							  <div class="clear"></div>
							 </li>
					        </s:elseif>
					        <s:elseif test="#id[0][7]==6">
					          
					           <li>
							    <div class="boxd1"><img src="<s:property value="#id[0][1]"/>" /></div>
							    <div class="boxd2">
							    <div class="dt1"><a href="${url1 }" target="_parent" class="red"><s:property value="#id[0][2]"/>
							     </a>关注了<a href="${url2 }" target="_parent" class="red"><s:property value="#id[0][5].split(',')[0]"/></div>
							    </div>
							    <div class="boxd3"><a href="${url2 }" target="_parent" class="red"><img src="<s:property value="#id[0][4]"/>" width=60 height=60/></a></div>
							    <div class="clear"></div>
						     </li>
					        </s:elseif>
					       <s:elseif test="#id[0][7]==7">
					         
						     <li>
							  <div class="boxd1"><img src="<s:property value="#id[0][1]"/>" /></div>
							  <div class="boxd2">
	                              <div class="dt1">
	                                     <a href="${url1 }" target="_parent" class="red"><s:property value="#id[0][2]"/></a>评价了<a href="${url2 }" target="_parent" class="red"><s:property value="#id[0][5]"/></a>团购网</div>
		                          <div class="pingjia"> 
		                                 &nbsp;&nbsp;
		                             <span class="tuan" ><s:property value="#id[0][6]"/>&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:void(0);" onclick="contentShow(this,'<s:property value="#id[0][8]"/>')" style="color:#9C2684;">回应</a>(<span id="count<s:property value="#id[0][8]"/>" style="color:#9C2684;"><s:property value="#id[1].size()"/></span>)</span>
		                             <div id="contentShow<s:property value="#id[0][8]"/>" style="display:none;color:#565656">
		                              <s:iterator value="#id[1]" >
		                              <div style="border-bottom:1px dashed #CCCCCC;">
		                                &nbsp;&nbsp;&nbsp;&nbsp;<s:property value="content"/>-
		                                <s:if test="userInfor.split(',')[2]==2">
		                                   <a href="user/user!singleUserPage.action?userId=<s:property value="userInfor.split(',')[1]"/>&currentPage=1" style="color:#9C2684"><s:property value="userInfor.split(',')[0]"/></a>
		                                </s:if>
		                                <s:elseif test="userInfor.split(',')[2]==3">
		                                    <a href="user/user!groupbyUserPage.action?currentPage=1&userId=<s:property value="userInfor.split(',')[1]"/> style="color:#9C2684""><s:property value="userInfor.split(',')[0]"/></a>
		                                </s:elseif>
		                                <s:elseif test="userInfor.split(',')[2]==4">
		                                     <a href="user/user!brandUserPage.action?currentPage=1&userId=<s:property value="userInfor.split(',')[1]"/> style="color:#9C2684""><s:property value="userInfor.split(',')[0]"/></a>
		                                </s:elseif>
		                                </div>
		                                
		                              </s:iterator>
		                             </div>
		                          </div>
	                              <div class="dt2" id="contentBut<s:property value="#id[0][8]"/>" style="display:none;"><input type="text" id="content<s:property value="#id[0][8]"/>" size="30" />
	                              <a href="javascript:void(0)" onclick="addReplay(<s:property value="#id[0][8]"/>,'count<s:property value="#id[0][8]"/>')" target="_parent">发表回应</a>&nbsp;&nbsp;
	                              <a href="user/user!groupbyUserPage.action?currentPage=1&userId=<s:property value="#id[0][3]"/>" target="_blank">去看看</a>&nbsp;&nbsp;</div>
	                              
	                          </div>
							  <div class="boxd3"><a href="${url2 }" target="_parent" class="red"><img src="<s:property value="#id[0][4]"/>" width=60 height=60 /></a></div>
							  <div class="clear"></div>
							 </li>
					        </s:elseif>
					      </s:iterator>
						 
						  </ul>
						  <div class="clear"></div>
					 </div>
					 
			  </div>		
<!--end好友动态-->
            <div class="me">
			      <div class="me_top"><a >我关注的品牌</a>
				 <span class="ziti_span">......................<a href="user!brandUserList.action?currentPage=1&userId=<s:property value="userId"/>" target="_parent" id="ziti_a">更多</a></span> </div>
				  <div class="me_con">
				   <div class="hh2">
				    <s:iterator value="brandList" id="id" status="status">
				        <s:if test="#id[0].level==4">
				          <div class="boxm1">
						        <div class="boxm_img">
						          <a href="user/user!brandUserPage.action?currentPage=1&userId=<s:property value="#id[0].id"/>" target="_parent">
						             <s:if test="#id[1].image.equals('')">
							            <img src="uploadFile/img.gif" width=98 height=98 />
								      </s:if>
								      <s:else>
								         <img src="uploadFile/<s:property value="#id[1].image"/>" width=98 height=98 />
								      </s:else>
							      </a>
							   </div>
							   <a href="user/user!brandUserPage.action?currentPage=1&userId=<s:property value="#id[0].id"/>" target="_parent">
							   <s:property value="#id[1].eusername"/>
							   </a>
							   <br/>
							   <a href="user/user!brandUserPage.action?currentPage=1&userId=<s:property value="#id[0].id"/>" target="_parent">
							   <s:property value="#id[1].username"/></a> </div>
					   </s:if>
					</s:iterator>
					
					 <div class="clear"></div>
					 </div>
					 
				  </div>
			</div>		
		<div class="me">
			      <div class="me_top"><a >我关注的团购网</a>
				 <span class="ziti_span">......................<a href="user!myGroupbyUserList.action?currentPage=1&userId=<s:property value="userId"/>" target="_parent" id="ziti_a">更多</a></span> </div>
				  <div class="me_con">
				   <div class="hh2">
				    <s:iterator value="groupbyUserList" id="id" status="status">
				       
				          <div class="boxm1">
						        <div class="boxm_img">
						          <a href="user/user!groupbyUserPage.action?currentPage=1&userId=<s:property value="#id[0].id"/>" target="_parent">
						             <s:if test="#id[1].image.equals('')">
							            <img src="uploadFile/img.gif" width=60 height=60/>
								      </s:if>
								      <s:else>
								         <img src="uploadFile/<s:property value="#id[1].image"/>" width=98 height=98 />
								      </s:else>
							      </a>
							   </div><a href="user/user!groupbyUserPage.action?currentPage=1&userId=<s:property value="#id[0].id"/>" target="_parent">
							   <s:property value="#id[1].eusername"/>
							   </a>
							   <br/>
							   <a href="user/user!groupbyUserPage.action?currentPage=1&userId=<s:property value="#id[0].id"/>" target="_parent">
							   <s:property value="#id[1].username"/></a> </div>
					   
					</s:iterator>
					
					 <div class="clear"></div>
					 </div>
					 
				  </div>
			</div>
<!--end 我关注的品牌--->
<div class="guess">
			        <div class="guess_top"><a >我最近关注的团购</a>
					</div>
					<div class="guess_con">
					<input type="hidden" id="attentionGroupby" value="<s:property value="myAttentionGroupby.size()"/>"/>
					    <s:iterator value="myAttentionGroupby" id="id" status="status">
					     <s:if test="#status.index==0">					     
						  
						  <div class="boxg">
						        <div class="picg"><a href="<s:property value="dealUrl"/>" target="_blank"><img src="<s:property value="image"/>" /></a>
								</div>
								<div class="infog">特价:<a  target="_parent" class="zixun"><s:property value="price"/>元</a><br/>
								<ul><li id="ttags0"></li></ul>
								<s:if test="%{title.length()>23}"> 
									    <div class="tt" id='tt0' title='<s:property value="title" />'>&nbsp;&nbsp;&nbsp;&nbsp;<s:property value="title.substring(0,23)+'...'" /></div>
								</s:if> 
								<s:else>
										<div class="tt" id='tt0' title='<s:property value="title" />'>&nbsp;&nbsp;&nbsp;&nbsp;<s:property value="title" /></div>
								</s:else>
								</div>
								
						  </div>
						  <s:else>
						  </s:else>
					      
						  <div class="boxg2">
						         <div class="picg"><a href="<s:property value="dealUrl"/>" target="_blank"><img src="<s:property value="image"/>" /></a>
								</div>
								<div class="infog">
								   特价:<a  target="_parent" class="zixun"><s:property value="price"/>元</a><br/>
								<ul><li id="ttags1"></li></ul>
								<s:if test="%{title.length()>23}"> 
									    <div class="tt" id='tt1' title='<s:property value="title" />'>&nbsp;&nbsp;&nbsp;&nbsp;<s:property value="title.substring(0,23)+'...'" /></div>
								</s:if> 
								<s:else>
										<div class="tt" id='tt1' title='<s:property value="title" />'>&nbsp;&nbsp;&nbsp;&nbsp;<s:property value="title" /></div>
								</s:else>
								</div>
								
						  </div>
						  </s:if>
						 </s:iterator>
						   
						<div class="clear"></div>  
					</div>
			   </div>
              <!--end 我最近关注的团购--->
		  </div>
	   <div class="right">
		 <div  class="ba">
		      <div class="ba_top"></div>
			   <div class="ba_con">
			       <div>   
			          <s:if test="userDetial.image.equals('')">
				         <img src="uploadFile/img.gif" class="img4" width=270 height=219/>
				      </s:if>
				      <s:else>
				         <img src="uploadFile/<s:property value="userDetial.image"/>" class="img4" width=270 height=219/>
				      </s:else>
			       </div>
			       <div style="width:272px;">
			             <s:property value="userDetial.describale" escape="false"/>
			       </div>
				   <div style="margin-top:10px;">
				     <div class="guanzhu"><a href="javascript:addFriend(<s:property value="userId"/>)" >关注此人</a></div>
				   </div>
			   </div>
			   <div class="ba_bot">
			   </div>
		</div>
	    <!--结束关注此人-->
		   <div class="gjc">
		      <div class="gjc_top"><a >我的关键词</a>
			  </div>
			  <div class="gjc_con">
			      <div style="overflow:hidden; text-overflow:ellipsis; width:270px;">
			        <s:iterator value="userDetial.tags.replaceAll('\"','').split(',')" id="tag" status="status">
			          <a style="letter-spacing:4px;margin:5px;" href="groupby!getCityGroupbyList.action?cityId=<s:property value="#session.cityId"/>&userId=<s:property value="userId"/>&currentPage=1&keyword=<s:property value="tag"/>,0"><s:property value="tag"/></a>
			        </s:iterator>
			      </div>
			  </div>
		   </div>
		   <!--结束我的关键词-->
		 <div class="notice">
		        <div class="box2_top"><a >我关注的人</a><span class="ziti_span">......................<a href="user/user!myFriendList.action?currentPage=1&userId=<s:property value="userId"/>" target="_parent" id="ziti_a">更多</a></span></div>
				<div class="box2_con">
				   <div class="not_nei">
				      
				      
				      <div class="hh1" style="overflow:hidden; text-overflow:ellipsis; width:300px;">
				      <s:iterator value="meToFriend" id="id" >
				            <s:if test="#id[0].level==2">
		                      <s:set name="url">user/user!singleUserPage.action?currentPage=1&userId=<s:property value="#id[0].id"/></s:set>
				           <div class="not1" style="height:82px;">
					        <div class="not_top">
					          <a href="<s:property value="url"/>">
						          <s:if test="#id[1].image.equals('')">
						            <img src="uploadFile/img.gif" width=60 height=60/>
							      </s:if>
							      <s:else>
							         <img src="uploadFile/<s:property value="#id[1].image"/>" width=60 height=60/>
							      </s:else>
						      </a>
						 </div>
						 <div class="not_con"><a  target="_parent"><s:property value="#id[1].username"/></a></div>
					   </div>
					    </s:if>
				      </s:iterator>
					 </div>
					 
					 
					
					 <div class="guanzhu_person" ><a href="user/user!friendToMe.action?currentPage=1&userId=<s:property value="userId"/>" >关注我的人</a>(<s:property value="friendToMeCount"/>)人</div>
					 <div class="clear"></div>
					 </div>
				</div>
		 </div>
<div class="box2">
		      <div class="box2_top"><a >留言板</a><span class="ziti_span">......................<a href="user/user!feedBack.action?currentPage=1&userId=<s:property value="userId"/>" target="_parent" id="ziti_a">去留言</a></span></div>
			  <div class="box2_con">
			  <ul class="ul2">
			    <s:iterator value="groupbyCriticismList" id="id" status="status">
			     
					                      <s:set name="urlContent"><s:property value="#id[7]" escape="false"/></s:set>
									  <s:if test="#id[6]==2">
					                      <s:set name="url">user/user!singleUserPage.action?currentPage=1&userId=<s:property value="#id[5]"/></s:set>
									   </s:if>
									   <s:elseif test="#id[6]==3">
									      <s:set name="url">user/user!groupbyUserPage.action?currentPage=1&userId=<s:property value="#id[5]"/></s:set>
									   </s:elseif>
									   <s:elseif test="#id[6]==4">
									      <s:set name="url">user/user!brandUserPage.action?currentPage=1&userId=<s:property value="#id[5]"/></s:set>
									   </s:elseif>
								       <li>
										<div class="pic">
										   <a href="<s:property value="url"/>">
											<s:if test="#id[3].equals('')">
					                 			<img src="uploadFile/img.gif" width=60 height=60/>
								            </s:if>
								            <s:else>
								                 <img src="uploadFile/<s:property  value="#id[3]"/>" width=60 height=60/>
								            </s:else>
								            </a>
										</div>
										<div class="info">
											<div class="xin">
												<table width="100%" border="0" cellspacing="0"
													cellpadding="0">
													<tr>
														<td width="65%" align="left" valign="middle">
															 &nbsp;&nbsp;&nbsp;&nbsp;<s:property value="#id[2]"/>:<a href="<s:property value="url"/>" class="ziti"><s:property value="#id[4]"/></a>
														</td>
														
													</tr>

												</table>

											</div>
											<a href="<s:property value="urlContent"/>">
											<s:if test="%{#id[1].length()>50}">
											    &nbsp;&nbsp;&nbsp;&nbsp;<s:property value="#id[1].substring(0,50)"/>...
											</s:if>
											<s:else>
											    &nbsp;&nbsp;&nbsp;&nbsp;<s:property value="#id[1]"/>
											</s:else>
											</a>
										</div>
										<!--end info-->
										<div class="clear"></div>
									  </li>
			    </s:iterator>
			      
               </ul>
               <div>
                 
               </div>
               
		  </div>
        </div>
		<!---------------------end box2-------------------------------------------------------->
	  </div>
	 <div class="clear"></div>
    </div>
</div>
<div id="foot"><jsp:include page="../bot.jsp"></jsp:include></div>
</div>
</body>
</html>
 <script> 
 var length1=$("#likeLength").val();
 var length2=$("#attentionGroupby").val();
 
  var tagsId=[];
  var tagsId2=[];
  for(var i=0;i<length1;i++)
  {
    tagsId.push("tags"+i+",t"+i);
  }
  lastIndexDemo(tagsId);
  for(var i=0;i<length2;i++)
  {
    tagsId2.push("ttags"+i+",tt"+i);
  }
  
  lastIndexDemo(tagsId2);
 </script>